<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title><?php echo $view->title;?></title>
		
		<!-- Define CSS stylesheets -->
		<link rel="stylesheet" href="_jslib/jquery/themes/base/jquery.ui.all.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/bootstrap/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/bootstrap/cus-icons.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/navmenu.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/main.css">
		<link rel="stylesheet" type="text/css" href="_styles/css/template.css">
		
		<!-- Define Javascript Libraries -->
		<script type="text/javascript" src="_jslib/jquery/jquery-1.10.2.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery-ui.js"></script>  
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.core.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.widget.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.mouse.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.button.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.draggable.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.position.js"></script>
    <script type="text/javascript" src="_jslib/jquery/ui/jquery.ui.dialog.js"></script>
    <script type="text/javascript" src="_jslib/jquery/watermark/jquery.watermark.js"></script>
		<script type="text/javascript" src="_jslib/bootstrap/bootstrap-hover-dropdown.min.js"></script> 
		<script type="text/javascript" src="_jslib/bootstrap/bootstrap.min.js"></script> 
		<script type="text/javascript" src="_jslib/main.js"></script>
		
    <script type="text/javascript">
			$(document).ready(function() {
         $("#tabs").tabs();
			});
		</script>
	</head>

	<?php
		$classDisabled = "";
		if($_SESSION['account']['user_type_id'] != CONST_SUPER_ADMIN_TYPE){
			$classDisabled = "disabled";
		}
	?>

	<body>
		<!-- template html here -->
		<nav class="navbar navbar-default" role="navigation"> 
			<div  class="navbar-header">
   				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-ex1-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    			<a class="navbar-brand" href="<?=APP_ROOT?>/home">Gemba360 GP Clinic</a> 
    	</div>
    	<div id="main_header">
    		  Logged in as 
  				<?php
  					if($_SESSION['account']['user_type_id'] != CONST_SUPER_ADMIN_TYPE){
  						echo ($_SESSION['account']['is_practicioner'] == 1) ? $_SESSION['account']['practicioner_name'] : $_SESSION['account']['nonpracticioner_name'];
  					}else{
  						echo $_SESSION['account']['username'];
  					}
  				?>
    	</div>
      <br clear="all" />
      
			<div class="collapse navbar-collapse navbar-ex1-collapse">
        <ul class="nav navbar-nav">
            <li> <a href="#">Open</a> </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">File<b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="<?=APP_ROOT?>/coming-soon">Address Book</a></li>
                <li><a href="<?=APP_ROOT?>/coming-soon">Scan/Import Correspondence</a></li>
                <li class="divider"></li>
                <li> <a href="<?=APP_ROOT?>/coming-soon">Gemba360 GP Stats</a> </li>
              </ul>
            </li>
            <li class="dropdown"> 
              <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">Patient<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="#">Open..</a></li>
                  <li><a href="<?=APP_ROOT?>/patient">Lists...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Waiting Room</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Add</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li><a tabindex="-1" href="#">New...</a> </li>
                        <li><a href="#">Family...</a> </li>
                        <li><a href="#">To Existing Family</a> </li>
                    </ul>
                  </li>
                <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Demographic Summary...</a> </li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">IHI Exception Report</a></li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">Users<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/logout">Logoff...</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/user">Setup Users</a></li>
                  <li class="divider"></li>
                  <li class="<?=$classDisabled;?>"><a href="<?=APP_ROOT?>/group">Setup Groups</a></li>
                  <li class="divider"></li>
                  <li class="<?=$classDisabled;?>"><a href="<?=APP_ROOT?>/atsi">Setup ATSI</a></li>
                  <li class="divider"></li>
                  <li class="<?=$classDisabled;?>"><a href="<?=APP_ROOT?>/healthfund">Setup Health Funds</a></li>
                  <li class="divider"></li>
                  <li class="<?=$classDisabled;?>"><a href="<?=APP_ROOT?>/healthfundtype">Setup Health Fund Types</a></li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">Tools<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">Letter Writers..</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Labels...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">X-Ray View Screen</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Calculators</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li><a tabindex="-1" href="<?=APP_ROOT?>/coming-soon">Gestational Age...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Metric Conversion...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">To Existing Family</a> </li>
                    </ul>
                  </li>
                  <li class="divider"></li>
                  <li class="disabled">
                    <a href="<?=APP_ROOT?>/coming-soon">Medicare Australia PKI Certificate Manager</a> 
                  </li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Options...</a> </li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Management Communications</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Gemba360 GP Clinic Exchange</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li class="disabled"><a tabindex="-1" href="<?=APP_ROOT?>/coming-soon">Registration Wizard...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">License Details...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">Setup User Profiles...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">Security...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">Proxy Server Setup...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">Sent Items...</a> </li>
                    </ul>
                  </li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Print Options</a></li>
                  <li class="divider"></li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Sidebar</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li class="disabled"><a tabindex="-1" href="<?=APP_ROOT?>/coming-soon">Gestational Age...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Show/Hide Sidebar...</a> </li>
                        <li class="disabled"><a href="<?=APP_ROOT?>/coming-soon">Add/Remove Widgets...</a> </li>
                    </ul>
                  </li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-close-others="true">Clinical<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">Recipes..</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Outstanding Actions...</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Drug Protocols...</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Immunisation Summary...</a> </li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Pap Test Results</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li><a tabindex="-1" href="<?=APP_ROOT?>/coming-soon">Summary...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Add Result...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Mark Patient</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Update last smear test...</a> </li>
                    </ul>
                  </li>
                  <li class="dropdown-submenu"> <a tabindex="-1" href="#">Prescription</a>
                    <ul class="dropdown-menu" style="display: none;">
                        <li><a tabindex="-1" href="<?=APP_ROOT?>/coming-soon">Batch Test...</a> </li>
                        <li><a href="<?=APP_ROOT?>/coming-soon">Summary...</a> </li>
                    </ul>
                  </li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">Correspondence<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">Check Holding File...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Download...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Outstanding Requests...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Actioned Items</a></li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">Search<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">Patient...</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Asthma...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Diabetes Register...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Immunisation...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Pap Test Results...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Pregnancy List...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Prescription...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Recall...</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Influenza 'At Risk'</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Pneumococcal Disease 'At Risk' </a></li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">Resources<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">Gemba360 GP Clinic ref</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Product Information (PI)</a></li>
                  <li class="divider"></li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Independent Drug Monograph (DI)</a> </li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Consumer Medicine Information (CMI)</a> </li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">What's New in Gemba360 GP Clinicref</a> </li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">What's New in Docle</a> </li>
                  <li class="divider"></li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Nutrition Leaflets...</a> </li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Patient Education...</a> </li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Travel Medicine...</a> </li>
                  <li class="divider"></li>
                  <li> <a href="<?=APP_ROOT?>/coming-soon">Pharmaceutical Companies...</a> </li>
              </ul>
            </li>
            <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" data-hover="dropdown" data-delay="1000" data-close-others="true">Help<b class="caret"></b></a>
              <ul class="dropdown-menu">
                  <li><a href="<?=APP_ROOT?>/coming-soon">What's New...</a></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">Gemba360 GP Clinic</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">System Information</a></li>
                  <li class="divider"></li>
                  <li><a href="<?=APP_ROOT?>/coming-soon">About...</a> </li>
              </ul>
            </li>
        </ul>
      </div>
		</nav>

		<div class="row">
  			<nav id="mini-navbar" class="navbar navbar-default navbar-xs" role="navigation"> 
    			<div class="navbar-header">
      				<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
    			</div>
    			<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
      				<ul class="nav navbar-nav">
        				  <li><a href="#"><i class="cus-gp_plus"></i></a></li>
        				  <li><a href="#"><i class="cus-gp_minus"></i></a></li>
        				  <li><a href="#"><i class="cus-gp_phyactivity"></i></a></li>
			            <li><a href="#"><i class="cus-gp_prescribe"></i></a></li>
			            <li><a href="#"><i class="cus-gp_letter_writer"></i></a></li>
			            <li><a href="#"><i class="cus-gp_address_book"></i></a></li>
			            <li><a href="#"><i class="cus-gp_smoking_details"></i></a></li>
			            <li><a href="#"><i class="cus-gp_cardio"></i></a></li>
			            <li><a href="#"><i class="cus-gp_bp"></i></a></li>
			            <li><a href="#"><i class="cus-gp_respiratory"></i></a></li>
			            <li><a href="#"><i class="cus-gp_weight_calcu"></i></a></li>
			            <li><a href="#"><i class="cus-gp_gestational"></i></a></li>
			            <li><a href="#"><i class="cus-gp_pathology"></i></a></li>
			            <li><a href="#"><i class="cus-gp_cytology"></i></a></li>
			            <li><a href="#"><i class="cus-gp_xray"></i></a></li>
			            <li><a href="#"><i class="cus-gp_ref"></i></a></li>
			            <li><a href="#"><i class="cus-gp_pi"></i></a></li>
			            <li><a href="#"><i class="cus-gp_independent_drug"></i></a></li>
			            <li><a href="#"><i class="cus-gp_cmi"></i></a></li>
			            <li><a href="#"><i class="cus-gp_travel"></i></a></li>
			            <li><a href="#"><i class="cus-gp_education"></i></a></li>
			            <li><a href="#"><i class="cus-gp_nutrition"></i></a></li>
			            <li><a href="#"><i class="cus-gp_print"></i></a></li>
			            <li><a href="#"><i class="cus-gp_close_record"></i></a></li>
			            <li><a href="#"><i class="cus-gp_next_patient"></i></a></li>
      				</ul>
    			</div>
  			</nav>
		</div>

		<div id="content">
			<?php include($view->page); ?>
		</div>

    <!-- Dialog box pop-ups -->
    <div id="deleteDiv" title="Are you sure you want to delete this?" style="display:none;">
        <iframe id="delete" width="350" height="80"></iframe>
    </div>

	</body>
</html>